#!/usr/bin/sh
APP_DEPLOY_DIR=$1

echo "Update service script"

echo "Install service"
cp $APP_DEPLOY_DIR/_Deployment/sdcloud-modelrun-agent.sh /etc/init.d
chmod 755 /etc/init.d/sdcloud-modelrun-agent.sh

echo "Start service"
service sdcloud-modelrun-agent start
